<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     
    </head>
    <body>
        <div>
            <script>
                                            /*for yaoyao li's id number
                    2013-3-26 23:29:09
                author:jiangkai (hacker for No.1)
                */
                var yuan='32072119920627';
                var Wi = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 ];
                var ValideCode = [ 1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2 ];

                function isTrueValidateCodeBy18IdCard(a_idCard) {   
                    var sum = 0; // 声明加权求和变量   
                    /*if (a_idCard[17].toLowerCase() == 'x') {   
                        a_idCard[17] = 10;// 将最后位为x的验证码替换为10方便后续操作   
                    } */  
                    for ( var i = 0; i < 17; i++) {   
                        sum += Wi[i] * a_idCard[i];// 加权求和   
                    }   
                    //document.write(sum+"<br>");
                    valCodePosition = sum % 11;// 得到验证码所位置   
                    if (a_idCard[17] == ValideCode[valCodePosition]) {   
                        return true;   
                    } else {   
                        return false;   
                    }   
                }

                for (var i = 1; i<=999;i=i+2){
                  if (i<=9)
                      var id = yuan +'00'+ i ;
                  else{
                      if (i<=99)
                          var id = yuan + '0' + i;
                      else
                            var id = yuan + i;
                  }
                  for(var j = 0 ; j <= 9 ; j++ ){
                      var id18 = id + j;
                        //document.write(id18+"<br>");
                      if (isTrueValidateCodeBy18IdCard(id18))
                          document.write(id18+"<br>");
                  }
                }
            </script>
        </div>
    </body>
</html>
